<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
    <script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
    <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
    <h1>查询列表</h1>
    <input type="text" id="time" placeholder="请选择时间">
    <input type="button" id="query" value="查询">
    <div id="list"></div>
    <script type="text/javascript">
        flatpickr("#time", {
            dateFormat: "Ymd",
        });
        $('#query').on('click', function(){
            $.ajax({
                url: 'http://www.hefatong.com/consulting/hefatong/'+$('#time').val(),
                type: 'get',
                success: function(data){
                    console.log(data)
                },
                error: function(err){
                    console.log(err);
                    alert('请求失败');
                }
            })
        });
    </script>
</body>
</html>